package com.jy.show.service.impl;

import com.jy.show.bean.City;
import com.jy.show.dao.CityMapper;
import com.jy.show.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;

    @Override
    public int insertCity(City city) {
        return cityMapper.insertCity(city);
    }

    @Override
    public List<City> queryAll() {
        return cityMapper.queryAll();
    }

    @Override
    public int updateCity(City city) {
        return cityMapper.updateCity(city);
    }

    @Override
    public int deleteCity(int id) {
        return cityMapper.deleteCity(id);
    }
}
